package com.ywz.project.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 租户信息表
 * </p>
 *
 * @author ywz
 * @since 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TTenement对象", description="租户信息表")
public class TTenement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "TENANT_ID", type = IdType.AUTO)
    private Integer tenantId;

    @ApiModelProperty(value = "租户名")
    @TableField("TENANT_NAME")
    private String tenantName;

    @ApiModelProperty(value = "租户简称")
    @TableField("SIMPLE_NAME")
    private String simpleName;

    @ApiModelProperty(value = "分库标识")
    @TableField("TENANT_KEY")
    private String tenantKey;

    @ApiModelProperty(value = "分库地址")
    @TableField("DB_URL")
    private String dbUrl;

    @ApiModelProperty(value = "分库帐号")
    @TableField("DB_USERNAME")
    private String dbUsername;

    @ApiModelProperty(value = "分库密码")
    @TableField("DB_PASSWORD")
    private String dbPassword;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;

    @ApiModelProperty(value = "服务截至时间")
    @TableField("SERVE_TIME")
    private LocalDateTime serveTime;

    @ApiModelProperty(value = "租户状态（1启动2停用）")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DELETED")
    private Integer isDeleted;


}
